package com.kinptm.masterclock;

import android.app.Application;

import com.kinptm.masterclock.db.DbHelper;

/**
 * Created by pc on 13-11-8.
 */
public class MasterClockApplication extends Application {
    private static MasterClockApplication instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }

    public static MasterClockApplication getInstance() {
        return instance;
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        DbHelper.getInstance().close();
    }
}
